local heg_description = [==[
# Game rule of jy_heg mode

jy_heg mode (a. k. a. Kingdom Wars) is one of game mode of Sanguosha.
Supports 2~10 players in FreeKill.

## Prepare for start

**Choose characters**

Deal out 6-7 character cards per player. Every player should choose 2
characters with the same nationality, and put them face-down.

The character card that closer to your health card is called as "main
character". The other is called "deputy character".

**Deal out health card**

Every player each takes 1 health card, it indicates you max HP. Max HP is the
sum of health unit of both your characters.

Note: The health unit on character card is called "Yingyang Fish". **When
someone firstly reveals both of his characters, if there is any Yingyang Fish
that doesn't compose to 1 HP, he gets 1 "Yingyang Fish" token card.**
For example, Sima Yi has 1.5 Yingyang Fish, and Zhang Liao has 2 Yingyang
Fish, the sum is 3.5, so his max HP = 3 and he gets 1 "Yingyang Fish" token
when reveals both characters.

When reducing HP, use your main character to lay over your lost HP.

## Proceeding the game

Pick up a player randomly as the start player. Starting from him, every player
eacho proceeds a turn at the reverse-clock order.

Every turn is divided into 6 phases:

Prepare phase -> Judge phase -> Draw phase -> Action phase -> Finish phase

**Prepare phase**

Some skills may be activated at this phase. You may also reveal your hidden
character cards.

**Judge phase**

If there is any card in your judgement area, you must perform judgement for
each of them. If there are multiple cards, judge the last put card first.

**Draw phase**

Draw 2 cards from the top of deck.

**Action phase**

You can use card at your own choice now, but should follow these 2 rules:

1. Can only use 1 Slash per Action phase.
2. Can not use delayed trick to whom has card of the same name in his
  judgement area.

When you use a card, you execute the effect of that card. In common situation,
cards are put into discard pile after being used.

**Discard phase**

Discard your hand cards to your hand card limitation. (Hand card limitation =
your HP)

**Finish phase**

Some skills may be activated at this phase.


## Death

When player's HP reduces to 0 (or lower), he enters brink-of-death. Unless he
uses Peach or Alcohol to himself, or somebody uses Peach to save his life, he
dies.

Dead player should reveal all hidden character cards, discard all cards in his
area (including judgement area), then execute rewards or punishments.

Rewards and punishments:

1. **The player who has confirmed his nationality and kills the same
  nationality must discard all hand cards and equipped cards**;
2. **The player who has confirmed his nationality and kills the different
  nationality draws X cards** (X = # of that nationality, including just
  killed player);
3. Specially, Careerists draw 3 cards after he kills someone.

E. g.: Shu character killed a Wei character, and now there are 2 alive Wei
characters, the Shu character draws 3 cards.

Note: If the killed player doesn't have any revealed character (that is called
"doesn't confirm his nationality"), reveal his characters to examine his
nationality. Players who doesn't confirm his nationality won't do any reward
or punishment after killing players.

## Win and Lose

The goal is related to nationality: **Eliminate all characters with different
nationality from you**.

Special: Careerists need to eliminate all other players.

When all characters have confirmed their nationality, the victory conditions
can be judged.

When only one nationality is alive, they win the game. (A character whose
nationality is not confirmed cannot win the game, even if it is the same
nationality as other survived characters).

## Hide and Reveal

**The hidden character has no skills, gender and nationality**. When hidden
character is about to activate its skill, reveal the card first, then activate
corresponding skill.

Generally, **there are only two moment two reveal hidden character: 1. At
Prepare phase; 2. When activating the skill of this card.**

E. g. Guo Jia and Sima Yi can reveal when using their skill after suffering
DMG.
Sun Quan and Gan Ning can reveal when activate skill in Action phase.

Note: In online game such as official Sanguosha Online or FreeKill, you need
to "prelight" some passive skills. (Prelight means to click the button of
that skill, and the game will ask you to use skill at appropriate time,
otherwise it won't ask you.)

Specially, **characters with forced-skill can be revealed actively at Action
phase**, such as Zhang Fei (has Roar), Ma Chao (has Horsemanship).

**The first player who reveal his character gets a "Vanguard" token card**.

Player without revealed character has no gender, so weapons and skills that
related to gender can not be activated to him. If there is one revealed card,
his gender becomes to the revealed character. If there are two revealed cards,
his gender becomes to gender of his main character.

Player without revealed character has no nationality. After revealing any
character, his nationality becomes the same as that card (on the top-left
corner of character card), or becomes to Careerist.

Careerist rule:

**When a player is about to confirm his nationality by revealing character,
if half of all players already confirmed the same nationality, he becomes
Careerist instead**. Give 1 Careerist role card to him. **Careerist is a
nationality that different from any others**, they need to kill all other
players to win the game.

Note: Careerist and another Careerist are considered as different nationality.

E. g.

★ In 6 players or 7 players game, when 4th (also 5th, 6th...) character with
the same nationality appears, he becomes a Careerist.

## Companion

Some of characters are companion. Usually, they are couples or close friends,
such as Liu Bei and Guan Yu, Zhou Yu and Xiao Qiao.

**When reveal both characters at the first time, if they are Companion, you
get a "Companion" token card**.

## Token Cards

**Companion**: In Action phase, can discard "Companion" to draw 2 cards;
can discard "Companion" to view as using Peach.

**Yingyang Fish**: In Action phase, can discard "Yingyang Fish" to draw 1
card; At the start of Discard phase, can discard "Yingyang Fish" to have +2
extra hand card limitation in this turn.

**Vanguard**: In Action phase, can discard "Vanguard" and draw to 4 hand cards,
then observe a hidden character of another player.

## Battle Royal Mode

When there are only 4 alive players (or even fewer), if there is no players
with the same nationality, enter Battle Royal mode at start of next turn.

Battle Royal mode: Peaches (except for virtual card and converted card) can
only be used/played as Slash or Dodge, and can not use for healing.

# 君临天下和势备篇补充规则和术语

## 大小势力 （势备篇）

**大势力**：人数最多且数量不小于2的势力。

**小势力**：若大势力存在，除大势力以外的其他势力。

**大势力角色**：势力为大势力的角色。

**小势力角色**：若大势力角色存在，不为大势力角色的角色。

没有大势力，就不可能有小势力、大势力角色、小势力角色。反之，有大势力，不一定有小势力。

小势力角色还包括未确定势力的角色。即势力为小势力的角色一定是小势力角色，而小势力角色不一定是势力为小势力的角色。

## 合纵 （势备篇）

某些牌上标有“合”标记。

每名角色的出牌阶段限一次，可以选择一项：
1.若你已确定势力，你可以将手牌中有“合”标记的至多三张牌交给与你势力不同的一名角色，摸等量的牌。
2.你可以将手牌中有“合”标记的至多三张牌交给未确定势力的一名角色。

即，出限一、限三张、摸等量。给明将摸牌，给暗将不摸；暗将不能给明将。

## 阵法、围攻、队列、主/副将技 （君临天下·阵）

**阵法技**：在全场存活角色数为4或更多时锁定生效的技能。拥有阵法技的角色可在其准备阶段开始时或出牌阶段发起“阵法召唤”。

**阵法召唤**：由拥有阵法技的角色发起，未确定势力、明置后将会满足此阵法技条件的角色均可明置其一张（满足条件的）武将牌，响应阵法召唤。

**围攻**：一名角色的上家和下家为两名势力相同的角色(且与该角色势力不同)时，该角色被“围攻”，成为“被围攻角色”；该角色的上家和下家成为“围攻角色”；该“围攻角色”和“被围攻角色”处于同一“围攻关系”。

**队列**：连续相邻的若干名(至少2名)势力相同的角色称为同一“队列”。

**主将技**：此武将牌为主将时才能使用的技能。

**副将技**：此武将牌为副武将才能使用的技能。

## 移除 （君临天下·势）

**移除**：将被移除的武将牌置入武将牌堆。被移除武将牌的角色用一张“士兵牌”来代替被移除的武将牌，“士兵牌”的性别、势力与被移除的武将牌相同，但没有技能，该角色没有“士兵牌”所占据的主将/副将。

## 变更 （君临天下·变）

**变更**：（线下）从武将牌堆中连续亮出武将牌，直到亮出一张势力相同的武将牌。将此武将牌作为新的副将（若原先有副将，将副将的原武将牌置入武将牌堆）。每局游戏限一次。

（线上则为从提供的三个同势力武将中选择一个）

## 军令 （君临天下·权）

**军令**：有些技能可以发起军令，发起军令分为（发起者）抽取选择军令和（执行者）询问执行军令。

发起军令的角色随机获得两张军令牌，然后选择其中一张，交给执行军令的角色。

执行军令的角色选择是否执行该“军令”。如果执行，该军令牌的效果生效。

6张军令牌：

军令一：对发起者指定的角色造成1点伤害；

军令二：摸一张牌，然后交给发起者两张牌；

军令三：失去1点体力；

军令四：本回合不能使用或打出手牌且所有非锁定技失效；

军令五：叠置，本回合不能回复体力；

军令六：选择一张手牌和一张装备区里的牌，弃置其余的牌。

## 君主规则 （君临天下）

]==]

return {
  ["jy_heg"] = "jy_heg",

  ["jy_heg_standard"] = "jy_heg Standard",
  ["hs"] = "H. Std.",

  ["jy_heg_cards"] = "jy_heg Standard",

  ["heg__nullification"] = "Nullification Heg.",
  ["heg__nullification_skill"] = "Nullification Heg.",
  [":heg__nullification"] =
  "Nullification Heg. (trick card)<br /><b>Phase</b>: When a trick card is about to take effect (including Nullification itself)<br /><b>Target</b>: This trick card<br /><b>Effect</b>: Counter the target and players from his force trick card.",
  ["#hegN-ask"] = "Nullification Heg.: Please Choose",
  ["hegN-single"] = "Use to %dest",
  ["hegN-all"] = "Use to %arg",
  ["hegN_toast"] = " Nullification Heg. to ",
  ["#HegNullificationSingle"] = "%from chose %card effect to %to ",
  ["#HegNullificationAll"] = "%from chose %card effect to %arg ",

  ["befriend_attacking"] = "Befriend Attacking",
  ["befriend_attacking_skill"] = "Befriend Attacking",
  -- [":befriend_attacking"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：有明置武将且势力与你不同的一名角色<br/><b>效果</b>：目标角色摸一张牌，然后你摸三张牌。",

  ["known_both"] = "Known Both",
  ["known_both_skill"] = "Known Both",
  -- [":known_both"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：一名其他角色<br/><b>效果</b>：观看其一张暗置的武将牌或其手牌。",
  -- ["#known_both-choice"] = "知己知彼：选择对 %dest 执行的一项",
  ["known_both_main"] = "Examine main character",
  ["known_both_deputy"] = "Examine deputy character",
  ["known_both_hand"] = "Examine hand cards",
  ["#KnownBothGeneral"] = "Examine character(s)",

  ["await_exhausted"] = "Await Exhausted",

  ["six_swords"] = "Six Swords",

  ["triblade"] = "Triblade",

  ["jy_heg_advantage"] = "Strategic Advantage",

  ["sa__drowning"] = "Drowning",
  -- [":sa__drowning"] = "",
  ["sa__drowning_skill"] = "Drowning",
  ["sa__drowning_throw"] = "Discard all cards in your equip area",
  ["sa__drowning_damage"] = "Take 1 Thunder DMG from %src",

  ["burning_camps"] = "Burning Camps",

  ["lure_tiger"] = "Lure Tiger",
  ["@@lure_tiger-turn"] = "Lure Tiger",

  ["fight_together"] = "Fight Together",

  ["alliance_feast"] = "Alliance Feast",
  -- [":alliance_feast"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：有势力的你和除你的势力外的一个势力的所有角色<br/><b>效果</b>：若目标角色：为你，你摸X张牌，回复（Y-X）点体力（Y为该势力的角色数）（X为你选择的自然数且不大于Y）；不为你，其摸一张牌，重置。<br/><font color='grey'>操作提示：选择一名与你势力不同的角色，目标为你和该势力的所有角色</font>",
  ["alliance_feast_skill"] = "Alliance Feast",
  ["#AFrecover"] = "Recover %arg HP(s), draw %arg2 card(s)",

  ["threaten_emperor"] = "Threaten Emperor",
  -- [":threaten_emperor"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：为大势力角色的你<br/><b>效果</b>：目标角色结束出牌阶段，当前回合的弃牌阶段结束时，其可弃置一张手牌，然后其获得一个额外回合。",
  -- ["#TE-ask"] = "受到【挟天子以令诸侯】影响，你可以弃置一张手牌，获得一个额外回合",
  ["threaten_emperor_skill"] = "Threaten Emperor",
  ["#threaten_emperor_extra"] = "Threaten Emperor",

  ["imperial_order"] = "Imperial Order",
  -- [":imperial_order"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：所有没有势力的角色<br/><b>效果</b>：目标角色选择：1.明置一张武将牌，其摸一张牌；2.弃置一张装备牌；3.失去1点体力。<br/><br/>※此牌不因使用而进入弃牌堆前，改为将此牌移出游戏，回合结束前，没有势力的角色依次执行此牌的效果。",
  ["imperial_order_skill"] = "Imperial Order",
  ["IO_reveal"] = "reveal 1 general card, draw 1 card",
  ["IO_discard"] = "discard 1 equip card",
  ["IO_hplose"] = "lose 1 HP",
  ["#ImperialOrderRemoved"] = "%card is removed from the game",

  ["sa__blade"] = "Blade",
  -- [":sa__blade"] = "装备牌·武器<br /><b>攻击范围</b>：３<br /><b>武器技能</b>：锁定技，当你使用【杀】时，此牌的使用结算结束之前，此【杀】的目标角色不能明置武将牌。",
  ["@@sa__blade"] = "Blade",

  ["sa__halberd"] = "Halberd",
  -- [":sa__halberd"] = "装备牌·武器<br /><b>攻击范围</b>：４<br /><b>武器技能</b>：当你使用【杀】选择目标后，"..
  -- "可以令任意名{势力各不相同且与已选择的目标势力均不相同的}角色和任意名没有势力的角色也成为目标，当此【杀】被【闪】抵消后，此【杀】对所有目标均无效。",
  ["#sa__halberd_skill"] = "Halberd",
  ["#sa__halberd_targets"] = "Halberd",
  -- ["#sa__halberd-ask"] = "你可发动【方天画戟】，令任意名势力各不相同且与已选择的目标势力均不相同的角色和任意名没有势力的角色也成为目标",
  ["#sa__halberd_delay"] = "Halberd",
  -- ["#HalberdTargets"] = "%from 发动了 “%arg” ，令 %to 也成为 %card 的目标",
  -- ["#HalberdNullified"] = "由于 “%arg” 的效果，%from 对所有剩余目标使用的 %arg2 无效",

  ["sa__breastplate"] = "Breastplate",
  ["#sa__breastplate_skill"] = "Breastplate",
  -- [":sa__breastplate"] = "装备牌·防具<br/><b>防具技能</b>：当你伤害时，若此伤害大于或等于你当前的体力值，你可将装备区里的【护心镜】置入弃牌堆，然后防止此伤害。",
  -- ["#sa__breastplate-ask"] = "护心镜：你可将装备区里的【护心镜】置入弃牌堆，防止 %arg 点 %arg2 伤害",
  -- ["#BreastplateSkill"] = "%from 发动了 “%arg”，防止了 %arg2 点 %arg3 伤害",

  ["iron_armor"] = "Iron Armor",
  ["#iron_armor_skill"] = "Iron Armor",
  -- [":iron_armor"] = "装备牌·防具<br/><b>防具技能</b>：锁定技，当你成为【火烧连营】、【火攻】或火【杀】的目标时，你取消此目标；当你横置前，若你是小势力角色，你防止此次横置。",

  ["jingfan"] = "Jing Fan",
  -- [":jingfan"] = "装备牌·坐骑<br /><b>坐骑技能</b>：你与其他角色的距离-1。",

  ["wooden_ox"] = "Wooden Ox",

  ["jade_seal"] = "Jade Seal",
  -- [":jade_seal"] = "装备牌·宝物<br/><b>宝物技能</b>：锁定技，若你有势力，你的势力为大势力，除你的势力外的所有势力均为小势力；摸牌阶段，若你有势力，你令额定摸牌数+1；出牌阶段开始时，若你有势力，你视为使用【知己知彼】。",
  ["#jade_seal_skill"] = "Jade Seal",
  -- ["#jade_seal-ask"] = "受到【玉玺】的效果，视为你使用一张【知己知彼】",

  ["alliance&"] = "Alliance",
  -- [":alliance&"] = "出牌阶段限一次，你可选择一项：1.若你已确定势力，你可将有“合”标记的至多三张手牌交给与你势力不同的一名角色，摸等量的牌；2.你可将有“合”标记的至多三张手牌交给未确定势力的一名角色。",
  -- ["#alliance&"] = "合纵：你可将至多3张有“合”标记的手牌交给势力不同或无势力的角色，前者你摸等量的牌",
  ["@@alliance"] = "All.",
  ["@@alliance-inhand"] = "All.",
  ["@@alliance-inhand-turn"] = "All.",

  ["formation_cards"] = "Formation Cards",
  ["momentum_cards"] = "Momentum Cards",
  ["transformation_cards"] = "Transformation Cards",
  ["power_cards"] = "Power Cards",

  -- Game Concept
  ["jy_heg_mode"] = "jy_heg mode",
  [":jy_heg_mode"] = heg_description,
  ["#ChooseHegInitialKingdom"] = "Heg. Rule: Choose your initial nationality",
  ["wild"] = "*Careerist*",
  ["#jy_heg_rule"] = "Heg. Rule",
  ["revealAll"] = "Reveal all characters",
  ["#EnterBattleRoyalMode"] =
      "<font color=\"red\"><b>Battle Royal Mode</b></font> begins, all <font color=\"#3598E8\"><b>Peach</b></font>es " ..
      "can only be used/played as <font color=\"#3598E8\"><b>Slash</b></font> or <font color=\"#3598E8\"><b>Jink</b></font>, cannot be used to recover HPs",
  ["#EnterBattleRoyalModeLog"] = "<font color=\"#CC3131\"><b>Battle Royal Mode</b></font> begins",
  ["@@BattleRoyalMode"] = "Battle Royal Mode",
  ["#wild-choose"] = "Careerist founding state: choose your nationality!",
  ["heg_qin"] = "Qin",
  ["heg_qi"] = "Qi",
  ["heg_chu"] = "Chu",
  ["heg_yan"] = "Yan",
  ["heg_zhao"] = "Zhao",
  ["heg_hanr"] = "Hann",
  ["heg_jin"] = "Jin",
  ["heg_han"] = "Han",
  ["heg_xia"] = "Xia",
  ["heg_shang"] = "Shang",
  ["heg_zhou"] = "Zhou",
  ["heg_liang"] = "Liang",
  ["#WildChooseKingdom"] = "%from became %arg2 , chose %arg",
  ["heg: besieged on all sides"] = "Besieged on all sides...",
  ["@seat"] = "",

  -- ["#HegInitialNotice"] = "提示：<b><font color='purple'>暴露野心</font></b><b>暂无</b><br><b><font color='red'>君刘备</font></b>、<b><font color='#8c92ac'>君张角</font></b>、<b><font color='forestgreen'>君孙权</font></b>、<b><font color='royalblue'>君曹操</font></b>均已登场！<br><b><font color='goldenrod'>君主</font></b>必须选择对应普通武将为<b>主将</b>，并在<b>首个回合亮将</b>才能变身",

  ["#HegPrepareConvertLord"] =
  "Heg. Rule: Please choose character card(s) to reveal (ONLY this time convertible into lord)",
  ["ConvertToLord"] = "<b>Convert into <font color='goldenrod'>%arg</font></b>！",

  ["#hide_general-ask"] = "%arg: hide a character card of %dest",
  ["#HideOtherGeneral"] = "%from hid %arg2, the %arg of %to",

  ["#GeneralRemoved"] = "%from removed %arg %arg2",

  ["command"] = "Command",

  ["#StartCommand"] = "%arg: Please choose one command:  <br>%arg2 or <br>%arg3",
  ["command1"] = "Command1",
  ["command2"] = "Command2",
  ["command3"] = "Command3",
  ["command4"] = "Command4",
  ["command5"] = "Command5",
  ["command6"] = "Command6",
  --[[
  [":command1"] = "军令一：对发起者指定的角色造成1点伤害",
  [":command2"] = "军令二：摸一张牌，然后交给发起者两张牌",
  [":command3"] = "军令三：失去1点体力",
  [":command4"] = "军令四：本回合不能使用或打出手牌且所有非锁定技失效",
  [":command5"] = "军令五：叠置，本回合不能回复体力",
  [":command6"] = "军令六：选择一张手牌和一张装备区里的牌，弃置其余的牌",

  ["start_command"] = "发起军令",
  ["#AskCommandTo"] = "%from 发动了 “%arg”，对 %to 发起了 <font color='#0598BC'><b>军令",
  ["#CommandChoice"] = "%from 选择了 %arg",
  -- ["chose"] = "chose",

  ["do_command"] = "执行军令",
  ["#commandselect_yes"] = "执行军令",
  ["#commandselect_no"] = "不执行军令",

  ["#command1-damage"] = "军令：请选择 %dest 伤害的目标",
  ["#Command1Damage"] = "%from 选择对 %to 造成伤害",
  ["#command2-give"] = "军令：请选择两张牌交给 %dest",
  ["#command6-select"] = "军令：请选择要保留的一张手牌和一张装备",
  ["@@command5_effect-turn"] = "Cmd ban recover",

  ["vanguard_skill&"] = "先驱",
  ["#vanguard_skill&"] = "你可弃一枚“先驱”，将手牌摸至4张，观看一名其他角色的一张暗置武将牌",
  [":vanguard_skill&"] = "出牌阶段，你可弃一枚“先驱”，将手牌摸至4张，观看一名其他角色的一张暗置武将牌。",
  ["vanguard"] = "先驱",

  ["yinyangfish_skill&"] = "阴阳鱼",
  ["#yinyangfish_skill&"] = "你可弃一枚“阴阳鱼”，摸一张牌",
  ["#yinyangfish_max&"] = "阴阳鱼",
  ["#yinyangfish_max-ask"] = "你可弃一枚“阴阳鱼”，此回合手牌上限+2",
  [":yinyangfish_skill&"] = "出牌阶段，你可弃一枚“阴阳鱼”，摸一张牌；弃牌阶段开始时，你可弃一枚“阴阳鱼”，此回合手牌上限+2。",
  ["yinyangfish"] = "阴阳鱼",

  ["companion_skill&"] = "珠联[摸]",
  ["#companion_skill&"] = "你可弃一枚“珠联璧合”，摸两张牌",
  [":companion_skill&"] = "出牌阶段，你可弃一枚“珠联璧合”，摸两张牌。",
  ["companion_peach&"] = "珠联[桃]",
  [":companion_peach&"] = "你可弃一枚“珠联璧合”，视为使用【桃】。",
  ["#companion_peach&"] = "你可弃一枚“珠联璧合”，视为使用【桃】",
  ["companion"] = "珠联璧合",

  ["wild_draw&"] = "野心[牌]",
  [":wild_draw&"] = "你可弃一枚“野心家”，执行“先驱”、“阴阳鱼”或“珠联璧合”的效果。",
  ["#wild_draw&"] = "你可将“野心家”当一种标记弃置并执行其效果（点击左侧选项框展开）",
  ["wild_vanguard"] = "将手牌摸至4张，观看一张暗置武将牌",
  ["wild_yinyangfish"] = "摸一张牌",
  ["wild_companion"] = "摸两张牌",

  ["wild_peach&"] = "野心[桃]",
  [":wild_peach&"] = "你可弃一枚“野心家”，视为使用【桃】。",
  ["#wild_peach&"] = "你可弃一枚“野心家”，视为使用【桃】",

  ["#wild_max&"] = "野心家[手牌上限]",
  ["#wild_max-ask"] = "你可弃一枚“野心家”，此回合手牌上限+2",
--]]
  ["battle_royal&"] = "Battle Royal",
  -- [":battle_royal&"] = "非转化的【桃】只能当【杀】或【闪】使用或打出。",
}
